<div id="search-results">
  <div class="grid_3">
    {% set base_doctype_url = base_url %}
    {% if product %}
      {% set base_doctype_url = base_doctype_url|urlparams(product=product.slug) %}
    {% endif %}
    {% set base_product_url = base_url %}
    {% if w != 3 %}
      {% set base_product_url = base_product_url|urlparams(w=w) %}
    {% endif %}
    <ul id="product-filter" class="search-filter sidebar-nav">
      <li {{ product|class_selected(null) }}>
        <a href="#" data-instant-search-unset-params="product" data-instant-search-set-params="all_products=1" data-instant-search="link" data-href="{{ base_product_url|urlparams(all_products=1)|encodeURI }}">
          {{ _('All Products') }}
        </a>
      </li>
      {% for p in products %}
        <li {{ product|class_selected(p.slug) }}>
          <a href="#" data-instant-search-set-params="product={{ p.slug }}" data-instant-search-unset-params="all_products" data-instant-search="link" data-href="{{ base_product_url|urlparams(product=p.slug)|encodeURI }}">
            {{ p.title }}
          </a>
        </li>
      {% endfor %}
    </ul>
    <br />
  </div>

  <div class="grid_9" id="search-results-list">
    {% include 'search-results-list.html' %}
  </div>
</div>
